<?php

class ExtensionFrontController extends Zend_Controller_Action
{
	protected $cache;

	public function init()
	{ 
		//CODE
	}
	
	protected function compruebaSesion()
    {
        $this->auth = new Zend_Session_Namespace('Zend_Auth');
        if (!$this->auth->logged && $this->getRequest()->getActionName() != 'index'){
			$this->_redirect( '/admin' );
        }
	}
}
